import SvgIcon from './SvgIcon/index.vue'
import Pagination from './Pagination/index.vue'

const allGlobalComponent = { SvgIcon, Pagination }

// console.log(Object.keys(allGlobalComponent))

// 对外暴露插件对象
export default {
  // 必须是install方法
  install(app) {
    Object.keys(allGlobalComponent).forEach(key => {
      console.log(key);
      
      // 注册所有组件
      app.component(key, allGlobalComponent[key])
    })
  }
}
